public class Object03 {
    public static void main(String[] args) {
        Person a = new Person();
        a.age = 10;
        a.name = "小明";
        Person b;
        b = a;
        System.out.println(b.name);
        b.age = 100;
        b = null;
        System.out.println(a.age);
        System.out.println(b.age);
    }


    public static void main1(String[] args) {
        Person person = new Person();
        person.name = "小猫";
        person.age = 18;
        Person person2 = person;
        System.out.println(person2.age);
    }
}




